<script setup>
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
import MainSideBar from 'views/main/MainSideBar.vue'
</script>

<template>
  <h2 class="title"><img src='./assets/vuelogo.png'>Vue3 learning</h2>
  <div class="content">
    <MainSideBar class="mainsidebar" />
    <div class="client">
      <router-view/>
    </div>
  </div>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  color: #2c3e50;
  /* margin-top: 60px; */
}

.title {
  position: relative;
  width: 100%;
  height: 40px;
  line-height: 40px;
  font-size: 22px;
  text-align: center;
  margin: 0;
  background-color: #eee;
}

.title img {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 10px;
}

.content {
  margin-top: 2px;
  position: relative;
  height: calc(100% - 40px);
}

.mainsidebar {
  position: fixed;
  height: calc(100% - 48px);
  width: 240px;
  border: 1px solid #eee;
}

.client {
  margin-left: 246px;
  position: relative;
  border: 1px solid #fff;
}
</style>
